import { ILogin } from "./data";
import { request } from "umi";
export async function login(param: ILogin) {
  try {
    const res = request('umi/login', {
      method: 'post',
      data: {
        ...param,
        account: 'Yzl',
        password: '123'
      }
    })
    return res
  }
  catch (e) {
    console.log(e)
  }
}